#include "wdtx.h"

void RCC_APB2ENR_GPIO_Init(GPIO_TypeDef* GPIOx)
{
	if(GPIOx == GPIOA)
	{
		RCC->APB2ENR |= RCC_APB2Periph_GPIOA;
	}
	else if(GPIOx == GPIOB)
	{
		RCC->APB2ENR |= RCC_APB2Periph_GPIOB;
	}
	else if(GPIOx == GPIOC)
	{
		RCC->APB2ENR |= RCC_APB2Periph_GPIOC;
	}
	else if(GPIOx == GPIOD)
	{
		RCC->APB2ENR |= RCC_APB2Periph_GPIOD;
	}
	else if(GPIOx == GPIOE)
	{
		RCC->APB2ENR |= RCC_APB2Periph_GPIOE;
	}
	else if(GPIOx == GPIOF)
	{
		RCC->APB2ENR |= RCC_APB2Periph_GPIOF;
	}
	else if(GPIOx == GPIOG)
	{
		RCC->APB2ENR |= RCC_APB2Periph_GPIOG;
	}
}
